package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WcsDvcMapper;
import com.ruoyi.system.domain.WcsDvc;
import com.ruoyi.system.service.IWcsDvcService;

/**
 * PLC接口参数Service业务层处理
 * 
 * @author ZYT
 * @date 2020-12-21
 */
@Service
public class WcsDvcServiceImpl implements IWcsDvcService 
{
    @Autowired
    private WcsDvcMapper wcsDvcMapper;

    /**
     * 查询PLC接口参数
     * 
     * @param dvcId PLC接口参数ID
     * @return PLC接口参数
     */
    @Override
    public WcsDvc selectWcsDvcById(Long dvcId)
    {
        return wcsDvcMapper.selectWcsDvcById(dvcId);
    }

    /**
     * 查询PLC接口参数列表
     * 
     * @param wcsDvc PLC接口参数
     * @return PLC接口参数
     */
    @Override
    public List<WcsDvc> selectWcsDvcList(WcsDvc wcsDvc)
    {
        return wcsDvcMapper.selectWcsDvcList(wcsDvc);
    }

    /**
     * 新增PLC接口参数
     * 
     * @param wcsDvc PLC接口参数
     * @return 结果
     */
    @Override
    public int insertWcsDvc(WcsDvc wcsDvc)
    {
        return wcsDvcMapper.insertWcsDvc(wcsDvc);
    }

    /**
     * 修改PLC接口参数
     * 
     * @param wcsDvc PLC接口参数
     * @return 结果
     */
    @Override
    public int updateWcsDvc(WcsDvc wcsDvc)
    {
        return wcsDvcMapper.updateWcsDvc(wcsDvc);
    }

    /**
     * 批量删除PLC接口参数
     * 
     * @param dvcIds 需要删除的PLC接口参数ID
     * @return 结果
     */
    @Override
    public int deleteWcsDvcByIds(Long[] dvcIds)
    {
        return wcsDvcMapper.deleteWcsDvcByIds(dvcIds);
    }

    /**
     * 删除PLC接口参数信息
     * 
     * @param dvcId PLC接口参数ID
     * @return 结果
     */
    @Override
    public int deleteWcsDvcById(Long dvcId)
    {
        return wcsDvcMapper.deleteWcsDvcById(dvcId);
    }
}
